﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucLeftMenu.ascx.cs"
    Inherits="SES.CMS.Module.ucLeftMenu" %>
<div class="left-content">
    <div id="caption">
        <h3 id="DanhMuc" style="margin-top: 8px;">
            Danh mục <span class="spanSanPham">Sản phẩm</span>
        </h3>
    </div>
    <div id="Menuleft">
        <ul class="Menulinkleft" id="collapser">
            <asp:Repeater runat="server" ID="rpt">
                <ItemTemplate>
                    <li><a href="#"
                        title='<%#Eval("TenLoaiSanPham")%>'>
                        <%#Eval("TenLoaiSanPham")%>
                    </a>
                        <asp:ImageButton ImageUrl="/images/addbutton.jpg" runat="server" ID="ImageButton1"
                            CssClass="btnadd" />
                        <ul>
                            <asp:Repeater runat="server" ID="rptChild" DataSource='<%# GetChildData(int.Parse(DataBinder.Eval(Container.DataItem,"LoaiSanPhamID").ToString())) %>'>
                                <ItemTemplate>
                                    <li><a href='/SanPham/pt/<%#Eval("LoaiSanPhamID")%>/<%#FriendlyUrl(Eval("TenLoaiSanPham").ToString())%>'><%#Eval("TenLoaiSanPham")%></a></li>
                                </ItemTemplate>
                            </asp:Repeater>
                            
                        </ul>
                    </li>
                </ItemTemplate>
            </asp:Repeater>
        </ul>
        <!--menulink-->
    </div>
</div>
